/**
 *
 * @author Osvaldo Rosado
 */
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.win32.StdCallLibrary;

public class WinApi {
    User32 User32 = (User32) Native.loadLibrary("user32", User32.class);
    public interface User32 extends StdCallLibrary {
       // Load up User32 functions
       public int SetParent(int hWndChild, int hWndNewParent);
       public int MoveWindow(int handle, int x, int y, int width, int height, boolean redraw);
       public int FindWindowA(String lpClassName, String lpWindowName);
       public int SetWindowLongA(int hwnd, int nIndex, int dwNewlong);
       public int GetActiveWindow();
       interface WNDENUMPROC extends StdCallCallback {
             boolean callback(int hWnd, int arg);
        }
       boolean EnumWindows(WNDENUMPROC lpEnumFunc, Pointer arg);
       public int GetWindowThreadProcessId(int hwnd, String lpdwProcessId);
       public int GetClassNameA(int hwnd, byte[] lpClassName, int nMaxCount);
       public int PostMessageA(int hwnd, int Msg, int wParam, int lParam);
   }
}
